const form = [{
    key: 'pz',
    label: '品种（按限制膨胀率）',
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'bbmj',
    label: '比表面积m2/kg',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'sy',
    label: '1.18mm筛余',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
}, {
    key: 'cnsj',
    label: '初凝时间min',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
}, {
    key: 'znsj',
    label: '终凝时间min',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'xzpzl7',
    label: '限制膨胀率%7d',
    validatorNumber:true,
    labelWidth: 160,
    required: true,
    placeholder: '请填写'
}, {
    key: 'xzpzl21',
    label: '限制膨胀率%（空气中21d）',
    validatorNumber:true,
    labelWidth: 200,
    required: true,
    placeholder: '请填写'
}, {
    key: 'qtkyqdb',
    label: '7天抗压强度比（%）',
    validatorNumber:true,
    labelWidth: 160,
    required: true,
    placeholder: '请填写'
},{
    key: 'esbtkyqdb',
    label: '28天抗压强度比（%）',
    validatorNumber:true,
    labelWidth: 180,
    required: true,
    placeholder: '请填写'
},{
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]


const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};